﻿using System.Windows.Forms;
using YonYou.U8.IN.Framework;
using YonYou.U8.IN.Model;

namespace YonYou.U8.IN.ParameterCheck
{
    public class NetControl : INetControl
    {
        public bool ShowStatusBar
        {
            get
            {
                return false;
            }
        }

        public Control CreateControl(BizContext context)
        {
            LoginEntity loginEntity = context.LoginEntity;
            //DataService.ConnString = loginEntity.UserData.ConnString.Replace("PROVIDER=SQLOLEDB;", "");
            //DataService.login = context.LoginObject;
            //CheckDataService.ConnString = loginEntity.UserData.ConnString.Replace("PROVIDER=SQLOLEDB;", "");
            //CheckDataService.login = context.LoginObject;
            return new MainForm();
        }
    }

}